<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<style type="text/css">
		body
		{ padding-top:60px;}
		
	</style>
</head>
	<body>
		<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
				<div class="container-fluid"> 
			    <div class="navbar-header">
			    <img alt="" src="./images/7.jpg" class="img-rounded" style="margin-top: 2px;" width="120" height="50" />
			    </div>
			    <div>
			        <!--向左对齐-->
			        <p class="navbar-text navbar-left">
			        
			        <c:if test="${name!=null}">		        	
			                         欢迎:${name }进入四月家小个子女装店：&nbsp;&nbsp;
			          <a href="index">首页</a>&nbsp;&nbsp;	
			          <a href="register.jsp">商品注册</a>&nbsp;&nbsp;			            			 
			        </c:if>
			        
			         <c:if test="${name==null}">
			        	 <a href="login.jsp">登录</a>&nbsp;&nbsp;
			       	  	<a href="index">首页</a>&nbsp;&nbsp;		                         		      			 
			        </c:if>
			        
			        	<c:if test="${name=='admin'}">
			        	 <a href="userindex">商品管理</a>			        	
			        	</c:if>			      	 
			       		         
			        </p>
			        <!--向右对齐-->  
			        <p class="navbar-text navbar-right" style="margin-right:10px;">
			        <a href="notice.jsp">公告&nbsp;<span class="badge" style="background-color:#f00; margin-top:-1px;">48</span></a>
			        	<a href="loginout">&nbsp;注销</a>
			        </p>
			  	  </div>
				</div>
			</nav>
	</body>
</html>